package com.liwujie.core.utils;

import java.time.LocalDate;
import java.time.format.DateTimeFormatter;

public class DateUtils {

    /**
     * 获取系统年月 如果 202502
     *
     * @return
     */
    public static String getSystemTimeYM() {
        LocalDate localDate = LocalDate.now();
        //格式化
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yMM");
        String tmp = localDate.format(formatter);
        tmp = tmp.substring(2);
        return tmp;
    }


}
